package com.scs.application.modules.order.adapter;

import com.scs.application.modules.order.consts.DictConsts;
import com.scs.application.modules.order.service.ThirdPlatformService;
import com.scs.application.modules.order.service.impl.ErpPlatformServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 第三方接口适配器
 */
@Component
public class ThirdPlatformAdapter {

    @Autowired
    private ErpPlatformServiceImpl erpPlatformService;

    public ThirdPlatformService getPlatformService(int orderPlatform) {
        if(DictConsts.ORDER_PLATFORM_ERP == orderPlatform){
            return erpPlatformService;
        }
        return null;
    }
}
